<script lang="ts" setup>
import { ref, reactive } from "vue";
import tab_default_img from "@/image/new_img/activity/tab_default.png";
import tab_select_img from "@/image/new_img/activity/tab_select.png";
import misterioso_img from "@/image/new_img/activity/misterioso.png";
import misterioso_2 from "@/image/new_img/activity/misterioso_2.png";
import misterioso_3 from "@/image/new_img/activity/misterioso_3.png";
import misterioso_4 from "@/image/new_img/activity/misterioso_4.png";
import misterioso_5 from "@/image/new_img/activity/misterioso_5.png";
import dui_img from "@/image/new_img/activity/dui_img.svg";
import dui_hui_img from "@/image/new_img/activity/dui_hui_img.svg";
import { useI18n } from "vue-i18n";
const { t } = useI18n();
const selectType = ref(1);
const listImg = reactive([
  { imgs: misterioso_img, day: 2 },
  { imgs: misterioso_2, day: 3 },
  { imgs: misterioso_3, day: 7 },
  { imgs: misterioso_4, day: 15 },
  { imgs: misterioso_5, day: 30 },
]);
</script>
<template>
  <!-- 每日签到 -->
  <div class="frame-div">
    <img class="banner_img" src="@/image/new_img/activity/banner_img.png" />
    <div class="content-frame">
      <div class="filling-frame"></div>
      <div class="img-list df">
        <div v-for="(item, index) in listImg" :key="index" class="img-frame">
          <img
            class="img-border-img"
            :src="selectType == index + 1 ? tab_select_img : tab_default_img"
          />
          <div class="mianju-img">
            <img :src="item.imgs" />
            <div class="text-frame df ai-center jc-center">
              {{ t("activity.signIn.day") }} <span>2</span>
            </div>
          </div>
          <img class="register-img" :src="index != 4 ? dui_img : dui_hui_img" />
          <img
            v-show="selectType == index"
            class="jiantou-img"
            src="@/image/new_img/activity/tab_jiantou.png"
          />
        </div>
      </div>
      <!-- 活动信息卡片 -->
      <div class="atc-info-frame">
        <div class="atc-info-content">
          <div class="text-content df ai-center jc-space-between">
            <div class="df ai-center">
              <img class="guanliyuan_bai" src="@/image/new_img/activity/guanliyuan_bai.png" />
              <span class="regis-time">{{ t("activity.signIn.regisTime") }}</span>
            </div>
            <div class="time">2024-08-29 11:50</div>
          </div>
          <div class="text-content df ai-center jc-space-between top23">
            <div class="df ai-center">
              <img class="guanliyuan_bai" src="@/image/new_img/activity/cunkuan_bai.png" />
              <span class="regis-time">{{ t("activity.signIn.totalDeposits") }}</span>
              <span class="day-frame">15</span>
              <span class="regis-time">{{ t("activity.signIn.days") }}</span>
            </div>
            <div class="time">{{ t("currencyType.pt") }}0</div>
          </div>
          <div class="card-frame">
            <div class="title-frame">{{ t("activity.signIn.collectionTime") }}：</div>
            <div class="time-frame df ai-center jc-center">
              <img class="shijian-img" src="@/image/new_img/activity/shijian.png" />
              <span class="finish-time">2024-09-12 08:00</span>
            </div>
            <div class="time-frame df ai-center jc-center">
              <img class="shijian-img" src="@/image/new_img/activity/m_misterioso.png" />
              <span class="title-naem-time">{{ t("activity.signIn.mysteriousBonus") }}</span>
            </div>
            <div class="money-frame df ai-center jc-center">
              {{ t("currencyType.pt") }}
              <span class="money-val">0</span>
            </div>
          </div>
          <div class="expired-frame df ai-center jc-center">
            <img class="img-title" :src="dui_img" />
            {{ t("activity.signIn.actExpired") }}
          </div>
        </div>
      </div>
      <!-- 列表 -->
      <div class="money-list-frame">
        <div class="title-frame df ai-center">
          <div class="list-title">{{ t("activity.signIn.depositAmount") }}</div>
          <div class="cut-frame"></div>
          <div class="list-title">{{ t("activity.signIn.mysterious") }}</div>
        </div>
        <div
          v-for="item in 8"
          :key="item"
          class="list-content df ai-center jc-space-between"
          :class="{ isdan: item % 2 == 0 }"
        >
          <div class="left-frame">
            {{ t("currencyType.pt") }} <span>{{ item * 10 }}~{{ item * 13 }}</span>
          </div>
          <div class="right-frame">{{ item / 10 }}~{{ item * 13 }}</div>
        </div>
      </div>
      <!-- 分割线 -->
      <div class="divider-frame df ai-center jc-center">
        <div class="divider-div"></div>
        <div class="divider-name">{{ t("activity.eventDescription") }}</div>
        <div class="divider-div divider-div-rigth"></div>
      </div>
      <div class="eventDescription-frame">
        1. Novos usuários podem participar de prêmios misteriosos no segundo, terceiro, sétimo,
        décimo quinto e trigésimo dia após o registro.<br />
        2. Quanto mais depósitos, maior o tempo online, e maior o bônus para o evento.<br />
        3. A atividade desaparece às 21:00 do 35 Dia após a inscrição, e a não cobrança do bônus
        será considerada como abandono.
        <br />
      </div>
    </div>
  </div>
</template>
<style lang="less" scoped>
.frame-div {
  width: 100%;
  height: 100%;
  overflow: scroll;
  scrollbar-width: none; /* Firefox  隐藏滚动条*/
  -ms-overflow-style: none; /* IE and Edge  隐藏滚动条*/
}
/* Webkit 隐藏滚动条 */
.frame-div::-webkit-scrollbar {
  display: none;
}
.banner_img {
  width: 100%;
  height: auto;
}

.content-frame {
  width: calc(100% - 76px);
  margin: auto;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  .filling-frame {
    width: 100%;
    height: 312px;
  }

  .img-frame {
    width: 105px;
    height: 168px;
    position: relative;
    top: 0;
    left: 0;
    margin-right: 7px;

    .img-border-img {
      width: 105px;
      height: 168px;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
    }

    .mianju-img {
      width: 95px;
      height: auto;
      position: absolute;
      left: 0;
      right: 0;
      margin: auto;
      top: 7px;
      z-index: 2;

      img {
        width: 95px;
        height: 95px;
      }

      .text-frame {
        font-size: 20px;
        color: #ffffff;
        margin-top: -10px;

        span {
          font-size: 33px;
          margin-left: 6px;
        }
      }
    }

    .register-img {
      width: 31px;
      height: 31px;
      position: absolute;
      left: 0;
      right: 0;
      margin: auto;
      bottom: 4px;
      z-index: 3;
    }

    .jiantou-img {
      width: 42px;
      height: 28px;
      position: absolute;
      bottom: -41px;
      left: 0;
      right: 0;
      margin: auto;
      z-index: 5;
    }
  }

  .atc-info-frame {
    width: 100%;
    height: 541px;
    border-radius: 40px;
    border: 3px solid #ffdabf;
    background-image: linear-gradient(#ce80ff 20%, #8597ff 100%);
    margin-top: 45px;
  }

  .atc-info-content {
    width: calc(100% - 74px);
    height: auto;
    margin: auto;
    margin-left: 37px;
    margin-top: 31px;

    .text-content {
      width: 100%;
      height: auto;

      .time {
        font-size: 20px;
        color: rgba(255, 255, 255, 0.85);
        text-align: right;
      }

      .regis-time {
        font-size: 20px;
        color: rgba(255, 255, 255, 0.65);
      }
    }

    .guanliyuan_bai {
      width: 28px;
      height: 28px;
      margin-right: 10px;
    }

    .top23 {
      margin-top: 23px;
    }

    .day-frame {
      color: yellow;
      font-size: 20px;
      margin-left: 4px;
      margin-right: 4px;
    }

    .card-frame {
      width: 100%;
      height: 272px;
      border-radius: 28px;
      background-image: linear-gradient(135deg, #fefce1, #da8d4e);
      margin-top: 28px;

      .title-frame {
        width: 372px;
        text-align: center;
        color: rgba(0, 0, 0, 0.65);
        font-size: 20px;
        margin: auto;
        padding-top: 28px;
        line-height: 28px;
        position: relative;
        left: 0;
        right: 0;
      }

      .time-frame {
        width: auto;
        margin: auto;
        margin-top: 7px;
        margin-bottom: 20px;

        .shijian-img {
          width: 28px;
          height: 28px;
          margin-right: 13px;
        }

        .finish-time {
          color: rgb(0, 0, 0);
          font-size: 24px;
        }
      }

      .title-naem-time {
        color: rgba(0, 0, 0, 0.65);
        font-size: 24px;
        font-weight: 700;
      }

      .money-frame {
        margin-top: 31px;
        color: rgba(0, 0, 0, 0.65);
        font-size: 24px;
      }

      .money-val {
        font-size: 54px;
        font-weight: 700;
        color: rgba(0, 0, 0, 0.25);
        margin-left: 6px;
      }
    }

    .expired-frame {
      font-weight: 700;
      font-size: 24px;
      margin-top: 41px;
      color: #ffffff;
      img {
        width: 41px;
        height: 41px;
        margin-right: 6px;
      }
    }
  }
  .money-list-frame {
    width: 100%;
    height: auto;
    //height: 386px;
    border: 2px solid hsla(0, 0%, 100%, 0.15);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 46px;
    .list-title {
      width: 50%;
      height: 44px;
      font-weight: 700;
      font-size: 20px;
      text-align: center;
      line-height: 44px;
      color: hsla(0, 0%, 100%, 0.85);
      background: hsla(0, 0%, 100%, 0.15);
    }
    .cut-frame {
      position: absolute;
      left: 0;
      right: 0;
      margin: auto;
      z-index: 5;
      width: 1px;
      height: 32px;
      background: hsla(0, 0%, 100%, 0.15);
    }
  }
  .list-content {
    width: 100%;
    height: 42px;
    border: 1px solid hsla(0, 0%, 100%, 0.15);
    .left-frame {
      font-size: 20px;
      color: hsla(0, 0%, 100%, 0.45);
      padding-left: 70px;
      span {
        color: #ffffff;
      }
    }
    .right-frame {
      width: 50%;
      color: #fe0;
      font-size: 24px;
      text-align: center;
    }
  }
}
.divider-frame {
  width: 100%;
  height: auto;
  margin-top: 60px;
  .divider-div {
    width: 129px;
    height: 2px;
    background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.65) 100%
    );
  }
  .divider-div-rigth {
    transform: scaleX(-1);
  }
  .divider-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 24px;
    margin-left: 13px;
    margin-right: 13px;
  }
}
.eventDescription-frame {
  width: 100%;
  height: auto;
  font-size: 22px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 25px;
  padding-bottom: 40px;
}
.isdan {
  background: hsla(0, 0%, 100%, 0.08);
}
</style>
